package com.hx.musicserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hx.musicserver.entity.Music;
import com.hx.musicserver.mapper.MusicMapper;
import com.hx.musicserver.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicServiceImpl extends ServiceImpl<MusicMapper, Music> implements MusicService {

    @Autowired
    MusicMapper musicMapper;

    @Override
    public List<Music> findMusicById(Integer musicId) {
        return musicMapper.findMusicById(musicId);
    }
}
